/* zoneLocation chrli */
define([
    'dojo/_base/declare',
    'dijit/_WidgetBase',

    'dijit/_TemplatedMixin',
    'dijit/_WidgetsInTemplateMixin',

    'dojo/json',
    'dojo/cookie',
    'dojo/_base/lang',

    'dijit/DropDownMenu',
    'dijit/MenuItem',
    'dijit/form/DropDownButton',
    'dojo/_base/array',
    'esri/geometry/Extent',
    'dojo/topic'
], function (declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin,
             json, cookie, lang, DropDownMenu, MenuItem, DropDownButton,
             array, Extent, topic) {

    return declare([_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
        // declaredClass: 'gis.digit.Bookmarks',
        widgetsInTemplate: true,
        map: null,
        navToolbar: null,
        postCreate: function () {
            this.inherited(arguments);

            topic.subscribe('fullMapZone', lang.hitch(this, 'fullMapZone'));
        },

        fullMapZone: function () {
            var ext = new Extent({
                xmin: -24000,
                ymin: 0,
                xmax: 10000,
                ymax: 34000,
                spatialReference: {wkt: 'PROJCS["shanghaicity",GEOGCS["GCS_Beijing_1954",DATUM["D_Beijing_1954",SPHEROID["Krasovsky_1940",6378245.0,298.3]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["False_Easting",-3457147.81],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",121.2751921],PARAMETER["Scale_Factor",1.0],PARAMETER["Latitude_Of_Origin",0.0],UNIT["Meter",1.0]]'}
            })
            this.map.setExtent(ext);
        }
    });
});